<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../static/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="../static/css/global.css"  media="all">
    <!--link rel="stylesheet"  href="https://heerey525.github.io/layui-v2.4.3/layui-v2.4.5/css/layui.css" media="all"-->
</head>
<body>

<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <ul class="layui-nav fly-nav" style="float:right">
            <li class="layui-nav-item">
                <a href="javascript:;" th:text="${username}">hello，yhx</a>
            </li>
            <li class="layui-nav-item">
                <a th:href="@{/index}">问答</a>
            </li>
            <li class="layui-nav-item"><a th:href="@{/questionlist}">列表</a></li>
            <li class="layui-nav-item">
                <a th:href="@{/logout}">登出</a>
            </li>
        </ul>
    </div>
</div>
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6">
<form action="#" method="post" th:action="@{/index}" th:object="${AForm}">
    <div class="layui-form-item layui-form-text">
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" class="layui-textarea" th:field="*{question}" ></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit >立即提交</button>
        </div>
    </div>
</form>
            <div class="layui-input-block">
            <div class="layui-card">
                <div class="layui-card-header">相关问题</div>
                <div class="layui-card-body">
            <ul class="layui-text">
                <li th:each="q:${simlist}">
                    <a th:text="${q.question}" th:href="@{${'question'}(id=${q.id})}">1111</a>
                </li>
            </ul>
                </div></div>
            </div>

        </div>
                <div class="layui-col-md6">

                    <div class="layui-card">
                        <div class="layui-card-header" th:text="${result_question}">最相似问题</div>
                        <div class="layui-card-body" th:text="${result_answer}">答案</div>
                    </div>

                </div>
            </div>
    </div>
</body>
</html>